export enum MessageType {
    TEXT = <any>'text'
  }
   
  export interface Chat {
    _id?: string;
    title?: string;
    picture?: string;
    lastMessage?: Message;
  }
   
  export interface Message {
    _id?: string;
    chatId?: string;
    content?: string;
    createdAt?: Date;
    type?: MessageType
    ownership?: string;
  }